  /**
   * Generate time : 2012-12-06 3:19:25
   * Version : 1.0.1.V20070717
   */
package com.baosight.sczx.zm.domain;

import com.baosight.iplat4j.core.ei.EiColumn;
import com.baosight.iplat4j.ep.DaoEPBase;
import java.util.HashMap;
import java.util.Map;
import com.baosight.iplat4j.util.StringUtils;
/**
 * ZM9Q 
 * table comment : 首页可配置模块 
 */
public class ZM9Q extends DaoEPBase {

	private String fdKeyId = " ";		/* FD_KEY_ID*/
	private String fdDepartmentId = " ";		/* 部门ID*/
	private String fdModuleName = " ";		/* 模块名称*/
	private String fdModuleId = " ";		/* 模块ID*/
	private String fdIshyperlink = " ";		/* 是否有超链接*/
	private String fdHyperlinkName = " ";		/* 超链接name*/

	/**
	 * initialize the metadata 
	 */
	public void initMetaData() {
		EiColumn eiColumn;
		
	eiColumn = new EiColumn("fdKeyId");
	eiColumn.setPrimaryKey(true);
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("FD_KEY_ID");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdDepartmentId");
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("部门ID");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdModuleName");
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("模块名称");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdModuleId");
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("模块ID");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdIshyperlink");
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("是否有超链接");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdHyperlinkName");
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("超链接name");
	eiMetadata.addMeta(eiColumn);

	}
	/**
	 * the constructor
	 */
	public ZM9Q() {
		initMetaData();
	}
	
	/**
	 * get the fdKeyId - FD_KEY_ID
	 * @return the fdKeyId
	 */
	public String getFdKeyId() {
		return this.fdKeyId;
	}
	
	/**
	 * set the fdKeyId - FD_KEY_ID
	 */
	public void setFdKeyId(String fdKeyId) {
		this.fdKeyId = fdKeyId;
	}
	
	/**
	 * get the fdDepartmentId - 部门ID
	 * @return the fdDepartmentId
	 */
	public String getFdDepartmentId() {
		return this.fdDepartmentId;
	}
	
	/**
	 * set the fdDepartmentId - 部门ID
	 */
	public void setFdDepartmentId(String fdDepartmentId) {
		this.fdDepartmentId = fdDepartmentId;
	}
	
	/**
	 * get the fdModuleName - 模块名称
	 * @return the fdModuleName
	 */
	public String getFdModuleName() {
		return this.fdModuleName;
	}
	
	/**
	 * set the fdModuleName - 模块名称
	 */
	public void setFdModuleName(String fdModuleName) {
		this.fdModuleName = fdModuleName;
	}
	
	/**
	 * get the fdModuleId - 模块ID
	 * @return the fdModuleId
	 */
	public String getFdModuleId() {
		return this.fdModuleId;
	}
	
	/**
	 * set the fdModuleId - 模块ID
	 */
	public void setFdModuleId(String fdModuleId) {
		this.fdModuleId = fdModuleId;
	}
	
	/**
	 * get the fdIshyperlink - 是否有超链接
	 * @return the fdIshyperlink
	 */
	public String getFdIshyperlink() {
		return this.fdIshyperlink;
	}
	
	/**
	 * set the fdIshyperlink - 是否有超链接
	 */
	public void setFdIshyperlink(String fdIshyperlink) {
		this.fdIshyperlink = fdIshyperlink;
	}
	
	/**
	 * get the fdHyperlinkName - 超链接name
	 * @return the fdHyperlinkName
	 */
	public String getFdHyperlinkName() {
		return this.fdHyperlinkName;
	}
	
	/**
	 * set the fdIshyperlink - 是否有超链接
	 */
	public void setFdHyperlinkName(String fdHyperlinkName) {
		this.fdHyperlinkName = fdHyperlinkName;
	}
	
	/**
	 * get the value from Map
	 */
	public void fromMap(Map map) {
	
		setFdKeyId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdKeyId")), fdKeyId));
		setFdDepartmentId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdDepartmentId")), fdDepartmentId));
		setFdModuleName(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdModuleName")), fdModuleName));
		setFdModuleId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdModuleId")), fdModuleId));
		setFdIshyperlink(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdIshyperlink")), fdIshyperlink));
		setFdHyperlinkName(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdHyperlinkName")), fdHyperlinkName));
	}
	
	/**
	 * set the value to Map
	 */
	public Map toMap() {
		
		Map map = new HashMap();
			map.put("fdKeyId",StringUtils.toString(fdKeyId, eiMetadata.getMeta("fdKeyId")));	
			map.put("fdDepartmentId",StringUtils.toString(fdDepartmentId, eiMetadata.getMeta("fdDepartmentId")));	
			map.put("fdModuleName",StringUtils.toString(fdModuleName, eiMetadata.getMeta("fdModuleName")));	
			map.put("fdModuleId",StringUtils.toString(fdModuleId, eiMetadata.getMeta("fdModuleId")));	
			map.put("fdIshyperlink",StringUtils.toString(fdIshyperlink, eiMetadata.getMeta("fdIshyperlink")));
			map.put("fdHyperlinkName",StringUtils.toString(fdHyperlinkName, eiMetadata.getMeta("fdHyperlinkName")));
			
		return map;
	
	}
}